Choose Audio Device - Kernel
(21 actions, 16 KB)
0 Dictionary »
1
7
8
{ "🎧": "BLE Headphone", "🔊": "BLE Speaker" }
1 Combine Text
[0 Dictionary
’s Keys
]
with
Custom
»
3
TextCustomSeparator
:
|
2 ToolboxProForShortcuts > GetAudioOutputsIntent »
3 Match Text
[1 Combined Text]
in
[2 Connections
’s Name
]
»
MatchTextCaseSensitive
:
false
4 If
[3 Matches]
does not have any value
ConditionalActionString
:
🎧
5 Choose from Menu
MenuPrompt
:
🤖 Connect to audio device?
MenuItems
:
[✅ Yes, ❌ No]
6 Menu Item
✅ Yes
7 Choose from List
[0 Dictionary
’s Keys
]
»
ChooseFromListActionPrompt
:
🤖 Which audio device?
8 Get Dictionary Value for
[7 Chosen Item]
in
[0 Dictionary]
»
9 Get My Shortcuts »
10
12
14
Folder
:
[8 Dictionary Value]
10 Count Items in
[9 My Shortcuts]
»
11 If
[10 Count]
>
1
12 Choose from List
[9 My Shortcuts
’s Name
]
ChooseFromListActionPrompt
:
🤖 Which one?
13 Otherwise
14 Get Text from
[9 My Shortcuts
’s Name
]
15 End If »
16 Run Shortcut
[15 If Result]
Workflow
:
[15 If Result]
17 Menu Item
❌ No
▵
6
18 Set Playback Destination
MediaRoute
:
{ "routeName": "iPhone", "routeUID": "Speaker", "isLocalDevice": true }
19 End Menu
20 End If ▵
4